home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global HalfSW, YouComputerSW, Counter, YourScore, YourLoction, YourCount, YourH, YourV, ComputerScore, ComputerLoction, ComputerCount, ComputerH, ComputerV, YourBallH, YourBallV, ComputerBallH, ComputerBallV, YourDirection, ComputerDirection, ThrowType, Counter1, MyCursor
- if HalfSW = 0 then
- set the text of cast "Yshots" to string(YourCount)
- if ComputerDirection = "+" then
- set the text of cast "Yspot" to string(ComputerLoction)
- else
- set the text of cast "Yspot" to string(10 + 9 - ComputerLoction)
- end if
- set HalfSW to 1
- end if
- if YourCount > 0 then
- set ThrowType to random(3)
- if ThrowType <> 1 then
- set YourCount to YourCount - 1
- end if
- set the text of cast "Yshots" to string(YourCount)
- go(the frame + 1)
- else
- if Counter1 = 0 then
- set ThrowType to random(3)
- set Counter1 to 1
- go(the frame + 1)
- else
- if Counter1 = 1 then
- set TR to random(3)
- if (TR = 1) or (TR = 2) then
- set ThrowType to random(3)
- set Counter1 to 2
- set the visible of sprite 15 to 1
- set ComputerCount to ComputerCount + 1
- go(the frame + 1)
- else
- go("ce" & string(ComputerLoction))
- end if
- else
- if Counter1 = 2 then
- set TR to random(2)
- if TR = 1 then
- set ThrowType to random(3)
- set Counter1 to 3
- set the visible of sprite 16 to 1
- set ComputerCount to ComputerCount + 1
- go(the frame + 1)
- else
- go("ce" & string(ComputerLoction))
- end if
- else
- if Counter1 = 3 then
- set TR to random(10)
- if TR = 20 then
- set ThrowType to random(3)
- set Counter1 to 4
- set the visible of sprite 17 to 1
- set ComputerCount to ComputerCount + 1
- go(the frame + 1)
- else
- go("ce" & string(ComputerLoction))
- end if
- else
- if Counter1 = 4 then
- go("ce" & string(ComputerLoction))
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on exitFrame
- go(the frame)
- end
-